package com.jcj.jcjsharding.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;

/**
 * 配置多数据源
 */
@Data
@ConfigurationProperties(prefix = "spring.sharding")
public class ShardingProperites {

    /**
     * key是ds0、ds1
     * value是url/username/password的Properties
     */
    private Map<String, Properties> datasources = new LinkedHashMap<>();
}
